target 'iosApp' do
    use_frameworks!
    platform :ios, '15.6'

    source 'https://cdn.cocoapods.org'
    source 'https://github.com/CocoaPods/Specs.git'
    source 'https://github.com/volcengine/volcengine-specs.git'

    pod 'shared', :path => '../shared'

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          # 1. 统一最低部署版本
          if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 15.6
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.6'
          end

          # 2. 强制生成 modulemap（解决找不到 .modulemap 的问题）
          config.build_settings['GENERATE_MODULEMAP_FILE'] = 'YES'
        end
      end
    end
end

